package com.songtech.set.modle;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 *create  by  zhaoxulin  on  2018-4-10  18:17  
 * @author hp
 *description:终端设备信息表
 */
@Entity
@Table(name="sys_pos_terminal_info")
public class TerminalInfo {

	/**
	 * 主键，设备ID
	 */
	@Id
	@Column(name = "terminal_id")
	private Long terminalId;

	/**
	 * 身份标识
	 */
	@Column(name = "imei")
	private  String  imei;

	/**
	 * 设备名称
	 */
	@Column(name = "terminal_name")
	private   String  terminalName;

	/**
	 * 设备编号
	 */
	@Column(name = "terminal_number")
	private   String  terminalNumber;

	/**
	 * 设备使用到期时间
	 */
	@Column(name = "terminal_cut_off_date")
	private  Date   terminalCutOffDate;

	/**
	 * 设备类型
	 */
	@Column(name = "terminal_type")
	private  String  terminalType;

	/**
	 * 设备昵称
	 */
	@Column(name = "terminal_nickname")
	private  String  terminalNickname;

	/**
	 * 设备电话
	 */
	@Column(name = "terminal_phone")
	private   String  terminalPhone;

	/**
	 * 联系人姓名
	 */
	@Column(name = "link_terminal")
	private  String  linkTerminal;
	
	private String terminalCutOffDateStr;
	

	public String getTerminalCutOffDateStr() {
		return terminalCutOffDateStr;
	}

	public void setTerminalCutOffDateStr(String terminalCutOffDateStr) {
		this.terminalCutOffDateStr = terminalCutOffDateStr;
	}


	/**
	 * 联系人联系电话
	 */
	@Column(name = "link_terminal_phone")
	private  String  linkTerminalPhone;

	/**
	 * 获取设备ID
	 * @return  terminalId
	 */
	public Long getTerminalId() {
		return terminalId;
	}

	/**
	 * 设置设备ID
	 * @param terminalId
	 */
	public void setTerminalId(Long terminalId) {
		this.terminalId = terminalId;
	}

	/**
	 * 获取身份标识
	 * @return  imei
	 */
	public String getImei() {
		return imei;
	}

	/**
	 * 设置身份标识
	 * @param imei
	 */
	public void setImei(String imei) {
		this.imei = imei;
	}

	/**
	 * 获取设备名称
	 * @return  terminalName
	 */
	public String getTerminalName() {
		return terminalName;
	}
	
	/**
	 * 设置设备名称
	 * @param terminalName
	 */
	public void setTerminalName(String terminalName) {
		this.terminalName = terminalName;
	}

	/**
	 * 获取设备编号
	 * @return  terminalNumber
	 */
	public String getTerminalNumber() {
		return terminalNumber;
	}

	/**
	 * 设置设备编号
	 * @param terminalNumber
	 */
	public void setTerminalNumber(String terminalNumber) {
		this.terminalNumber = terminalNumber;
	}

	/**
	 * 获取设备使用到期时间
	 * @return  terminalCutoffDate
	 */
	public Date getTerminalCutOffDate() {
		return terminalCutOffDate;
	}
	
	/**
	 *设置设备到期使用时间
	 * @param terminalCutoffDate
	 */
	public void setTerminalCutOffDate(Date terminalCutOffDate) {
		this.terminalCutOffDate = terminalCutOffDate;
	}

	/**
	 * 获取设备类型
	 * @return  terminalType
	 */
	public String getTerminalType() {
		return terminalType;
	}

	/**
	 * 设置设备类型
	 * @param terminalType
	 */
	public void setTerminalType(String terminalType) {
		this.terminalType = terminalType;
	}

	/**
	 * 获取设备昵称
	 * @return  terminalNickname
	 */
	public String getTerminalNickname() {
		return terminalNickname;
	}

	/**
	 * 设置设备昵称
	 * @param terminalNickname
	 */
	public void setTerminalNickname(String terminalNickname) {
		this.terminalNickname = terminalNickname;
	}

	/**
	 * 获取设备电话
	 * @return  terminalPhone
	 */
	public String getTerminalPhone() {
		return terminalPhone;
	}

	/**
	 * 设置设备电话
	 * @param terminalPhone
	 */
	public void setTerminalPhone(String terminalPhone) {
		this.terminalPhone = terminalPhone;
	}

	/**
	 * 获取联系人姓名
	 * @return  linkTerminal
	 */
	public String getLinkTerminal() {
		return linkTerminal;
	}

	/**
	 * 设置联系人姓名
	 * @param linkTerminal
	 */
	public void setLinkTerminal(String linkTerminal) {
		this.linkTerminal = linkTerminal;
	}

	/**
	 * 获取联系人电话
	 * @return  linkTerminalPhone
	 */
	public String getLinkTerminalPhone() {
		return linkTerminalPhone;
	}

	/**
	 * 设置联系人电话
	 * @param linkTerminalPhone
	 */
	public void setLinkTerminalPhone(String linkTerminalPhone) {
		this.linkTerminalPhone = linkTerminalPhone;
	}
	

	@Override
	public String toString() {
		return "TerminalInfo [terminalId=" + terminalId + ", imei=" + imei + ", terminalName=" + terminalName
				+ ", terminalNumber=" + terminalNumber + ", terminalCutOffDate=" + terminalCutOffDate
				+ ", terminalType=" + terminalType + ", terminalNickname=" + terminalNickname + ", terminalPhone="
				+ terminalPhone + ", linkTerminal=" + linkTerminal + ", linkTerminalPhone=" + linkTerminalPhone + "]";
	}



}
